import java.math.BigDecimal;

/**
 * @author chenqi04
 * @Title: TextTypeEnum
 * @ProjectName stock-order-center
 * @Description: 精度
 * @date 2018/12/1511:29
 * @email chenqi04@youxin.com
 */
public enum PrecisionTypeEnum {

    ROUND_HALF_UP_3(3,  BigDecimal.ROUND_HALF_UP),
    ROUND_HALF_UP_4(4, BigDecimal.ROUND_HALF_UP),
    ROUND_HALF_UP_8(8, BigDecimal.ROUND_HALF_UP),
    ROUND_HALF_UP_9(9, BigDecimal.ROUND_HALF_UP),
    ROUND_HALF_UP_2(2, BigDecimal.ROUND_HALF_UP),
    ROUND_UP_2(2, BigDecimal.ROUND_UP),
    ROUND_UP_0(0, BigDecimal.ROUND_UP),
    ROUND_DOWN_0(0, BigDecimal.ROUND_DOWN),
    ROUND_DOWN_2(2, BigDecimal.ROUND_DOWN),
    ROUND_DOWN_3(3, BigDecimal.ROUND_DOWN),
    ROUND_DOWN_10(10, BigDecimal.ROUND_DOWN),
    ROUND_DOWN_4(4, BigDecimal.ROUND_DOWN),;
    private int type;
    private int roundingNode;

    PrecisionTypeEnum(int type, int roundingNode) {
        this.type = type;
        this.roundingNode = roundingNode;
    }

    public int getType() {
        return type;
    }

    public int getRoundingNode() {
        return roundingNode;
    }

}
